import { _decorator, Component, Node } from 'cc';
import { ControllerBase } from '../../../JJYYCore/MVC/Controller/ControllerBase';
const { ccclass, property } = _decorator;

@ccclass('GameMenuController')
export class GameMenuController extends ControllerBase 
{
    public setControllerElement():void
    {
        let btn = this.BtnDicInstance.get('StartGame')
        btn.node.on(Node.EventType.TOUCH_START, () => {
            console.log('Hello World!');
        })

        btn = this.BtnDicInstance.get('Option')
        btn.node.on(Node.EventType.TOUCH_START, () => {
            console.log('Hello! Hello!');
        })

        console.log('Bundle elements!')
    }

    public getID():string
    {
        return "GameMenuController"
    }
}

